string object
This method is used to determine whether the given string is empty. That is to say, contains no characters.
bool is_empty()
Parameters:
None.
Return value:
True if the string is empty, false otherwise.
Remarks:
None.
Example:
// Declare a string and check if it is empty.
void main()
{
string[] example="Fantastic!";
if(example.is_empty())
{
alert("Oh dear!", "The string seems to be empty, despite attempting to assign a value to it.");
exit();
}
alert("Information", "The string is nicely full of data.");
}